<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>项目管理系统</title>
	<link href="static/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet"></link>
	<link href="static/css/wall.css" type="text/css" rel="stylesheet"></link>
</head>
	<body class="body">
		<%@ include file="top.jsp"%>
		<div class="container" style ="margin-top:60px">
			<div class="row">
				<jsp:include page="left.jsp">
					<jsp:param value="idea" name="tag"/>
				</jsp:include>
				<div class="span9">
					<ul class="breadcrumb" style="margin-bottom: 0px; margin-top: 15px;">
						<li class="active">
						<a href="idea.jspx"><i class="icon-fire"></i>想法</a>&gt;${requestScope.idea.title }
						</li>
					</ul>
					<div class="wall">
						<div class="page-header">							
							<h3>${requestScope.idea.title}
							&nbsp<small>${requestScope.idea.member.name}发布于 ${requestScope.idea.time}</small>
							</h3>	
						</div>
						<p>${requestScope.idea.content}</p>
						<hr>
						<div class="line">评论</div>
						  <%-- <c:if test="${requestScope.msg != null}">
							  <div class="alert alert-error">
									<button class="close" data-dismiss="alert" type="button">×</button>
								  	${requestScope.msg}
							  </div>
						  </c:if>
 --%>						<form method="post" action="idea.jspx?m=commentsave"style="margin-top:5px">
							<input type="hidden" name="id" value="${requestScope.idea.id }"/>
							<textarea class="span5" name="content" rows="3"></textarea>
							<br>
							<button class="btn btn-primary" type="submit">发布</button>
						</form>
						<c:forEach items="${requestScope.commentList.result}" var="comment">
							<blockquote>
								${comment.content }
								<small>
									${comment.member.name }发布于 ${comment.time }
									<a title="删除" href="idea.jspx?m=commentdelete&&commentid=${comment.id}&&id=${idea.id}">
										<i class="icon-trash"></i>
									</a>
								</small>
							</blockquote>
						</c:forEach>
						<div class="pagination pull-right">
							<ul>
								<li>
									<a href="idea.jspx">←返回想法列表</a>
								</li>
								<li>
									<a href="idea.jspx?m=show&&id=${idea.id }&&p=1">首页</a>
								</li>
								<li class="active">
									<a href="idea.jspx?m=show&&id=${idea.id }&&p=${commentList.pageNum - 1}">上一页</a>
								</li>
								<li>
									<a href="idea.jspx?m=show&&id=${idea.id }&&p=${commentList.pageNum + 1}">下一页</a>
								</li>
								<li>
									<a href="idea.jspx?m=show&&id=${idea.id }&&p=${commentList.totalPages}">尾页</a>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="static/jquery/jquery.js"></script>
	<script type="text/javascript" src="static/bootstrap/js/bootstrap.min.js"></script>
	</body>
</html>